#include "panelchart.h"
#include <wx/wxfreechartdefs.h>
#include <wx/chartpanel.h>
#include <wx/chart.h>

PanelChart::PanelChart(wxWindow* parent)
: wxPanel(parent)
{
	wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
	m_chart = new wxChartPanel(this);
	sizer->Add(m_chart, 1, wxEXPAND|wxALL, 0);
	SetSizer(sizer);
	Layout();
}

void PanelChart::SetChart(Chart *chart)
{
	m_chart->SetChart(chart);
}


